第15步:没有门就很难进入我们的房子!

  • 点击.找到Rectangle并将其拖到您的程序中。
  • 将矩形的名称更改为door

To navigate the page using the TAB key, first press ESC to exit the code editor.

# sprite = codesters.Circle(x, y, diameter, "color") sun = codesters.Circle(-150, 175, 75, "gold") # sprite = codesters.Square(x, y, width, "color") house = codesters.Square(0, -125, 250, "purple") # sprite = codesters.Triangle(x, y, size, "color") roof = codesters.Triangle(0, 100, 300, "green")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)